package com.infolab.aims.domain;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.infolab.aims.common.bean.AbstractModelBean;

//@Entity
//@Table(name="AMTB_VEHICLE_PART")
public class VehiclePart extends AbstractModelBean implements Serializable {

	@EmbeddedId
	private VehiclePartPK vehiclePartPK;
	
	private boolean mainPart;
	
	@JsonIgnore
	@ManyToOne
	@JoinColumn(name="vehicleId")
	private Vehicle vehicle;


	public VehiclePartPK getVehiclePartPK() {
		return vehiclePartPK;
	}

	public void setVehiclePartPK(VehiclePartPK vehiclePartPK) {
		this.vehiclePartPK = vehiclePartPK;
	}

	public boolean isMainPart() {
		return mainPart;
	}

	public void setMainPart(boolean mainPart) {
		this.mainPart = mainPart;
	}

	@JsonIgnore
	public Vehicle getVehicle() {
		return vehicle;
	}

	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}
	
	
}
